<?php

/* 
 * 每个页面的标题部分
 */
session_start();
$userName = "";
if( isset($_SESSION['access']) ){
    if($_SESSION['access']==true){
        $userName = $_SESSION['username'];
    }else{
        header("location: ../login.php");
    }
}else{
    header("location: ../errorPage/401.php");
}

?>
<html>
    <head>
        <title>welcome</title>
        <meta charset="UTF-8">
        <link href="../css/header.css"type="text/css" rel="stylesheet" />
    </head>
    <body>
    <table cellSpacing=0 cellPadding=0 width="100%" height="100%" background="../img/header/header_bg.jpg" border=0>
        <TR height=56>
            <TD width=260>
                <IMG height=56 src="../img/header/header_left.jpg" width=260>
            </TD>
            <TD style="font-weight: bold; color: #fff; padding-top: 20px" align=middle>当前用户：<?php echo $userName;?> 
                &nbsp;&nbsp; <A style="color: #fff" href="../logout.php" target=_top>退出系统</A> 
            </TD>
            <TD align=right width=268>
                <IMG height=56 src="../img/header/header_right.jpg" width=268>
            </TD>
        </TR>
    </table>
    <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TR bgColor=#1c5db6 height=4>
            <TD></TD>
        </TR>
</TABLE>

